

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<link type="text/css" rel="stylesheet" href="../skin/css/table.css"/>
<script type="text/javascript" src="../skin/js/jquery-1.7.1.js"></script>
<script >
    $(function () {
        $("#department").val("${department}");
        $("#logFamily").val("${logFamily}");
    });
</script>
<head>
    <title>查看所有用户信息</title>
</head>
<body>
<jsp:include page="../functionModule.jsp"/>
<%--右边--%>
<div class="right_layout">
    <img src="../skin/images/left_hidden1_03.png" class="hidden_img"/>
    <div class="right_content">
        <div class="right_tit">
            <div class="right_back fyh"><a href="${pageContext.request.contextPath}/home?method=home">返回</a></div>
            <div class="tit_bg fyh">当前位置： 管理菜单 >>文章管理</div>
        </div>
        <div class="tabel_choose">
            <form action="${pageContext.request.contextPath}/log?method=manageLog" method="post">
                <label class="table_lab fyh">部门查询</label>
                <select id="department" name="department" class="table_select2">
                    <option value="" >请选择</option>
                    <c:forEach items="${departments}" var="department" varStatus="vs">
                        <option>${department.department}</option>
                    </c:forEach>
                </select>
                <label class="table_lab fyh">日志类别查询</label>
                <select id="logFamily" name="logFamily" class="table_select2">
                    <option value="" class="">请选择</option>
                    <c:forEach items="${logFamilies}" var="logFamily" varStatus="vs">
                        <option>${logFamily.logFamily}</option>
                    </c:forEach>
                </select>
                <input type="submit" value="" class="table_bt1"/><input type="submit" class="table_bt fyh" value="查&nbsp;&nbsp;询"/><input type="submit" value="" class="table_bt2"/>
            </form>
        </div>
        <div>
            <table class="tab">
                <tr>
                    <th width="10%" class="tab_th fyh"><input type="checkbox" class="tab_checkbox1"/>ID</th>
                    <th width="20%" class="tab_th fyh">标题</th>
                    <th width="10%" class="tab_th fyh">日期</th>
                    <th width="10%" class="tab_th fyh">类型</th>
                    <th width="10%" class="tab_th fyh">状态</th>
                    <th width="10%" class="tab_th fyh">部门</th>
                    <th width="10%" class="tab_th fyh">姓名</th>
                    <th width="10%" class="tab_th fyh">管理</th>
                </tr>
                <c:forEach items="${logs}" var="log" varStatus="vs">
                    <tr>
                        <td class="tab_td fyh"><input type="checkbox" class="tab_checkbox"/><span class="tab_span">${log.id}</span></td>
                        <td class="tab_td fyh">${log.title}</td>
                        <td class="tab_td fyh">${log.date}</td>
                        <td class="tab_td fyh">${log.logFamily}</td>
                        <td class="tab_td fyh">${log.logStatus}</td>
                        <td class="tab_td fyh">${log.department}</td>
                        <td class="tab_td fyh">${log.realName}</td>
                        <td class="tab_td fyh"><a href="${pageContext.request.contextPath}/log?method=lookUserLog&id=${log.id}"><input type="button" class="tab_button" value="查看"/></a></td>
                    </tr>
                </c:forEach>
            </table>
            <form action="#" class="tab_form">

                <a href="${pageContext.request.contextPath}/log?method=manageLog&page=${allPage}&department=${department}&logFamily=${logFamily}"><input type="button" class="table_button fyh" value="尾页" /></a>
                <a href="${pageContext.request.contextPath}/log?method=manageLog&page=${pageNow+1}&department=${department}&logFamily=${logFamily}"><input type="button" class="table_button fyh" value="下一页" /></a>
                <a href="${pageContext.request.contextPath}/log?method=manageLog&page=${pageNow-1}&department=${department}&logFamily=${logFamily}"><input type="button" class="table_button fyh" value="上一页" /></a>
                <a href="${pageContext.request.contextPath}/log?method=manageLog&page=0&department=${department}&logFamily=${logFamily}"><input type="button" class="table_button fyh" value="首页" /></a>
                <div class=" table_page fyh">
                    共&nbsp;<span>${count}</span>&nbsp;条记录&nbsp;&nbsp;&nbsp;&nbsp;
                    每页&nbsp;<span>10</span>&nbsp;条&nbsp;&nbsp;&nbsp;&nbsp;
                    页次：<input type="text" value="${pageNow}" class="table_pgnum"/>共${allPage}&nbsp;&nbsp;页
                </div>
            </form>
        </div>
    </div>
    <div class="floor fyh">软件开发：&nbsp;赣州科睿特软件技术有限公司(技术支持)&nbsp;&nbsp;&nbsp;&nbsp;客服电话：&nbsp;0797-8356742</div>
</div>
</body>
</html>
